<?php
class BaseSql
{
    public $dbms = 'mysql';     //数据库类型
    public $host = '127.0.0.1'; //数据库主机名
    public $dbName = 'g09short';    //使用的数据库
    public $user = 'root';      //数据库连接用户名
    public $pass = '123';          //对应的密码
    public $dsn = "";
    function __construct()
    {
        //初始化属性
        $this->dsn = $this->dbms . ":host=" . $this->host .  ";dbname=" . $this->dbName;
    }
}